import { get, post } from "@/utils/request";
import { httpHeader } from './tools/httpHeader'

// 获取排班列表
export function getAllScheduling(data){
    let url = httpHeader() + '/his/sad/doctorscheduling/getAllScheduling'
    return get(url,data)  
}

//所有科室的医生
export function getAllDoctorAndDep() {
  let url = httpHeader() + '/his/sad/doctorscheduling/getAllDoctorAndDep'
  return get(url,null)
}

//医生排班
export function doctorScheduling(data) {
  let url = httpHeader() + '/his/sad/doctorscheduling/doctorScheduling'
  return post(url,data)
}

//获取所有科室
export function getAllDep() {
  let url =  httpHeader() + '/his/sad/doctorscheduling/getAllDep'
  return get(url,null)
}


//开始排班
export function Scheduling(data) {
  let url = httpHeader() + '/his/sad/doctorscheduling/Scheduling'
  return post(url,data)
}

